[AutoRound] Support WAN2.2 W4A16 quantization model#3353
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
8ccefe8 to
cbfbe97
Compare
|
Comprehensive benchmarks and well-structured tests. Memory reduction to 0.48x is significant for VRAM-constrained deployments. Two notes: 1) Checklist items at the bottom are unchecked - confirm documentation was updated if required. 2) Latency impact (0.86x speedup) is expected for compute-bound workloads at batch size 1, but consider documenting guidance for optimal batch sizes where dequantization overhead is amortized. |
cbfbe97 to
3a2cde7
Compare
|
Merge conflicts need fixing before review. Thx. |
3a2cde7 to
7616e04
Compare
|
LGTM now |
|
@yenuo26 please check test |
|
CI passed Running test: test_wan22_diffusion_features[cuda_ti2v_cache_dit] -- | Running test: test_wan22_diffusion_features[cuda_t2v_cfg_parallel] | Running test: test_wan22_diffusion_features[cuda_t2v_ulysses_sp] | Running test: test_wan22_diffusion_features[cuda_t2v_tp_vae_patch] | Running test: test_wan22_diffusion_features[cuda_t2v_hsdp] | Running test: test_wan22_diffusion_features[cuda_t2v_ring_atten] | Running test: test_wan22_diffusion_features[cuda_i2v_cfg_parallel] | Running test: test_wan22_diffusion_features[cuda_i2v_ulysses_sp] | Running test: test_wan22_diffusion_features[cuda_i2v_tp_vae_patch] | Running test: test_wan22_diffusion_features[cuda_i2v_hsdp] | Running test: test_wan22_diffusion_features[cuda_i2v_ring_atten] | Running test: test_wan22_diffusion_features[cuda_ti2v_cfg_parallel] | Running test: test_wan22_diffusion_features[cuda_ti2v_ulysses_sp] | Running test: test_wan22_diffusion_features[cuda_ti2v_tp_vae_patch] | Running test: test_wan22_diffusion_features[cuda_ti2v_hsdp] | Running test: test_wan22_diffusion_features[cuda_ti2v_ring_atten] | Running test: test_wan_2_1_vace[single_card_001] | Running test: test_wan_2_1_vace[parallel_001] | Running test: test_wan_2_1_vace[parallel_002] | Running test: test_wan_2_1_vace[parallel_003] | Running test: test_wan_2_1_vace[parallel_004] | Running test: test_wan_2_1_vace[parallel_005] | Running test: test_hunyuan_video_15_t2v[single_card_cachedit_layerwise] | Running test: test_hunyuan_video_15_t2v[parallel_cachedit_tp2_vae2] | Running test: test_wan22_i2v_autoround_w4a16_generates_video[omni_runner0] | Running test: test_wan22_t2v_autoround_w4a16_generates_video[omni_runner0] | Running test: test_wan22_i2v_autoround_w4a16_quant_peak[omni_runner0] | Running test: test_wan22_i2v_autoround_w4a16_baseline_peak[omni_runner0] | Running test: test_wan22_t2v_autoround_w4a16_quant_peak[omni_runner0] | Running test: test_wan22_t2v_autoround_w4a16_baseline_peak[omni_runner0] | Running Summary | ================================================== 34 passed, 2 deselected, 33 warnings in 4804.66s (1:20:04) ================================================== |
|
please resolve conflicts, thx |
Head branch was pushed to by a user without write access
|
please fix DCO |
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
…quantization support for Wan2.2 T2V / I2V inference on Ascend NPU (vllm-project#3578) Signed-off-by: hyh_hh <huyinghong1@huawei.com> Co-authored-by: hyh_hh <huyinghong1@huawei.com> Signed-off-by: lvliang-intel <liang1.lv@intel.com>
e2c5156 to
f75eaf3
Compare
Signed-off-by: lvliang-intel <liang1.lv@intel.com> Signed-off-by: hyh_hh <huyinghong1@huawei.com> Co-authored-by: hxhhhlalala <hyh_hh@163.com> Co-authored-by: hyh_hh <huyinghong1@huawei.com> Signed-off-by: Advik <scince5678@gmail.com>
Signed-off-by: lvliang-intel <liang1.lv@intel.com> Signed-off-by: hyh_hh <huyinghong1@huawei.com> Co-authored-by: hxhhhlalala <hyh_hh@163.com> Co-authored-by: hyh_hh <huyinghong1@huawei.com>
PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT THE BOTTOM) HAVE BEEN CONSIDERED.
Purpose
Add AutoRound W4A16 quantization support for Wan2.2 pipelines and transformer modules.
https://huggingface.co/Intel/Wan2.2-TI2V-5B-Diffusers-int4-AutoRound
https://huggingface.co/Intel/Wan2.2-I2V-A14B-Diffusers-int4-AutoRound
https://huggingface.co/Intel/Wan2.2-T2V-A14B-Diffusers-int4-AutoRound
Related: #1325, #1777, #2670
Test Plan
Run UT
Run VBench dataset accuracy test
Test Result
Raw Scores
Aggregate by Category
Evaluated Dimension Average
Generation Statistics
The test is mainly for accuracy purpose. For video generation at batch size 1, Int4 W4A16 primarily saves memory (0.48x as shown — great for fitting larger models / longer videos in VRAM) but does not necessarily improve latency because the workload is compute-bound and dequantization overhead is significant.
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model. Please runmkdocs serveto sync the documentation editions to./docs.BEFORE SUBMITTING, PLEASE READ https://github.com/vllm-project/vllm-omni/blob/main/CONTRIBUTING.md (anything written below this line will be removed by GitHub Actions)